package com.qd.common.flow.domain.bill;

import com.cdqidi.util.page.BaseQuery;
import com.cdqidi.valid.group.DefaultGroup;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Size;

/**
 * 流程查询
 *
 * @author sjk
 * @create 2024-02-27 13:17
 * @since 1.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
public class FlowQueryDTO extends BaseQuery {
    /**
     * 流程名称
     */
    @Size(max = 200, message = "流程名称长度不能超过{max}位", groups = DefaultGroup.class)
    private String processName;
    /**
     * 流程编码
     */
    @Size(max = 20, message = "流程编码长度不能超过{max}位", groups = DefaultGroup.class)
    private String processCode;
    /**
     * 任务名称
     */
    @Size(max = 100, message = "任务名称长度不能超过{max}位", groups = DefaultGroup.class)
    private String taskName;
    /**
     * 业务状态:0进行中1已结束
     */
    private Integer billState;
    /**
     * 审批人ID
     */
    @Size(max = 50, message = "审批人ID长度不能超过{max}位", groups = DefaultGroup.class)
    private String approval;
    /**
     * 审批部门ID
     */
    @Size(max = 50, message = "审批部门ID长度不能超过{max}位", groups = DefaultGroup.class)
    private String approvalDepart;

    public void freeData() {
        this.processName = null;
        this.processCode = null;
        this.taskName = null;
        this.billState = null;
        this.approval = null;
        this.approvalDepart = null;
    }
}